﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace UIModel.Mongo
{
    /// <summary>
    /// 会员月消费表
    /// </summary>
    public partial class VipMthMongo
    {
        /// <summary>
        /// 主键ID(mongo专用)
        /// </summary>
        public ObjectId _id { get; set; }

        /// <summary>
        /// 企业编号
        /// </summary>
        [Description("企业编号")]
        public string CpnID { get; set; }

        /// <summary>
        /// 卡面号
        /// </summary>
        [Description("卡面号")]
        public string CrdNo { get; set; }

        /// <summary>
        /// 年龄标签
        /// </summary>
        [Description("年龄标签")]
        public string VipLb1 { get; set; }
        /// <summary>
        /// 价值标签
        /// </summary>
        [Description("价值标签")]
        public string VipLb2 { get; set; }
        /// <summary>
        /// 品类群标签
        /// </summary>
        [Description("品类群标签")]
        public string VipLb3 { get; set; }
        /// <summary>
        /// 会员类型
        /// </summary>
        [Description("会员类型")]
        public int VipTp { get; set; }
        /// <summary>
        /// 开始日期
        /// </summary>
        [Description("开始日期")]
        [BsonDateTimeOptions(Kind = DateTimeKind.Local)]
        public DateTime StDt { get; set; }
        /// <summary>
        /// 结束日期
        /// </summary>
        [Description("结束日期")]
        [BsonDateTimeOptions(Kind = DateTimeKind.Local)]
        public DateTime EtDt { get; set; }
        /// <summary>
        /// 消费次数
        /// </summary>
        [Description("消费次数")]
        public Int64 Freq { get; set; }

        /// <summary>
        /// 消费数量
        /// </summary>
        [Description("消费数量")]
        public Int64 Qty { get; set; }

        /// <summary>
        /// 消费金额
        /// </summary>
        [Description("消费金额")]
        public Int64 ConsVal { get; set; }

        /// <summary>
        /// 消费折扣
        /// </summary>
        [Description("消费折扣")]
        public Int64 DiscVal { get; set; }

        /// <summary>
        /// 消费品种
        /// </summary>
        [Description("消费品种")]
        public Int64 Skus { get; set; }

        /// <summary>
        /// 消费积分
        /// </summary>
        [Description("消费积分")]
        public Int64 IntgAmt { get; set; }
        /// <summary>
        /// 商品成本
        /// </summary>
        [Description("商品成本")]
        public Int64 Cst { get; set; }
        /// <summary>
        /// 会员毛利
        /// </summary>
        [Description("会员毛利")]
        public Int64 CstMpro { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [Description("更新时间")]
        [BsonDateTimeOptions(Kind = DateTimeKind.Local)]
        public DateTime UptDtt { get; set; }

    }
}
